import request from '@/utils/request'

export function getListShopLevel (data) {
  return request({
    url: '/system/shopLevel/getListShopLevel',
    method: 'get',
    params: data
  })
}

export function getListShopOwnLevel (data) {
  return request({
    url: '/system/shopLevel/getListShopOwnLevel',
    method: 'get',
    params: data
  })
}
export function deductions (data) {
  return request({
    url: '/system/shopLevel/deductions',
    method: 'get',
    params: data
  })
}
export function deductionsList (data) {
  return request({
    url: '/system/deductions/deductionsList',
    method: 'get',
    params: data
  })
}
export function getListShopLevelPrice (data) {
  return request({
    url: '/system/shopLevel/getListShopLevelPrice',
    method: 'get',
    params: data
  })
}
export function editSubmitLevel (data) {
  return request({
    url: '/system/shopLevel/editSubmitLevel',
    method: 'post',
    data
  })
}
export function editSubmitLevelPrice (data) {
  return request({
    url: '/system/shopLevel/editSubmitLevelPrice',
    method: 'post',
    data
  })
}

export function deleteShopLevel (data) {
  return request({
    url: '/system/shopLevel/deleteShopLevel',
    method: 'post',
    params: { ids: data }
  })
}
export function deleteShopLevelPrice (data) {
  return request({
    url: '/system/shopLevel/deleteShopLevelPrice',
    method: 'post',
    params: { ids: data }
  })
}
